package com.mathcat.mobile.android.net;

import org.apache.http.HttpResponse;

/**
 * HttpCaller.
 * 
 * @author Mathcat
 * @version 1.0, 2010.12.28
 */
public interface HttpCaller {

	public final static int ERROR_CODE_CANCELED  = 0x01;
	public final static int ERROR_CODE_UNKNOWN_HOST = 0x02;
	public final static int ERROR_CODE_TIMEOUT = 0x03;
	public final static int ERROR_CODE_UNKNOWN = 0x0;
	
	void onCompelete(HttpResponse response);
	
	void onFailed(int errorCode);
}
